/*
 * @Author: 赵天天
 * @Date: 2019-04-04 14:48:05
 * @LastEditors: 赵天天
 * @LastEditTime: 2019-05-20 15:05:52
 * @email: dayday_1996@163.com
 * @Descripttion: 活跃节点变化情况
 */
export default function drawddline (xdata, ydata1) {
  var ddLine = {
    tooltip: {
      trigger: 'axis',
      borderRadius: 4,
      textStyle: {
        color: '#ffffff',
        fontSize: 12
      }
    },
    legend: {
      data: ['活跃节点'],
      textStyle: {
        color: '#5c6781',
        fontFamily: '宋体'
      }
    },
    grid: {
      left: '10px',
      right: '20px',
      bottom: '10px',
      top: '14px',
      containLabel: true
    },
    color: ['#7BAEFF'],
    xAxis: {
      type: 'category',
      splitLine: { show: false },
      boundaryGap: false,
      data: xdata,
      axisLine: {
        lineStyle: {
          color: '#eeeeee',
          width: 1 // 这里是为了突出显示加上的
        }
      },
      axisLabel: {
        color: '#5c6781',
        fontFamily: '宋体'
      }
    },
    yAxis: {
      splitLine: { show: false },
      type: 'value',
      axisLine: {
        lineStyle: {
          color: '#eeeeee',
          width: 1 // 这里是为了突出显示加上的
        }
      },
      axisLabel: {
        color: '#5c6781',
        fontFamily: '宋体'
      }
    },
    series: [
      {
        name: '活跃节点',
        type: 'line',
        data: ydata1

      }
    ]
  }
  return ddLine
}
